﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MixScriptWeb.Accounting.ReportObject
{
    public partial class frmlistJournal : cCommonWeb, IMIxCommon // System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            { LoadData(); }
        }
        private void LoadData()
        {
            FillDropDownList(ddlCurrency, "mst_currency", "currency", "currency", true);
        }
        public bool isvalid()
        {
            return true;
        }
        protected void btnProccess_click(Object sender, EventArgs e)
        {
            //"t","aw","ak","c","p"

            string t = ddlJournal.SelectedItem.Value.ToString();
            string c = ddlCurrency.SelectedItem.Value.ToString();
            string aw = txtFrom.Text;
            string ak = txtTo.Text;
            string p = ddlPosting.SelectedItem.Value;


            ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW",
                "window.open( '/Accounting/ReportObject/rpt_listJournal_x.aspx?t=" + t + "&c=" + c + "&aw=" + aw + "&ak=" + ak + "&p=" + p + "', null, ',scrollbars=auto' );", true);

        }
    }
}